package com.gp.controller;

import com.gp.service.BaseAreaService;
import com.gp.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rent/area")
@CrossOrigin
public class BaseAreaController {
    @Autowired
    private BaseAreaService baseAreaService;
    @GetMapping("list")
    public CommonResult list(){
        return baseAreaService.findAll();
    }
}
